<?php
class content extends Div
{
	function content($args)
	{
		global $news;
		$newsData = $news->listLast(null, $args['filter'] );

		if ($newsData)
		{
			foreach ($newsData as $line => $info)
			{
				$info['line'] = $line;
                $content .= getThemeContent('content.html', $info);
			}
		}
	    parent::div($args['filter'], $content);
	}
}
?>
